Samardzija rebounds from bad start for Cubs