fixed bug in checkin controller