fix bug in prev checkin