fix error leaveforstaff