fixed the booking query