Fixed error for get_leave_application_by_id