small bug fix in pick next assignment