fixed logic for leave_between? in leave_request