Fixed query for check in.