delete leave_type logic
bug fix