fix search hotel algorithm