Fix a bug where user can checkin several times without checkout