ok fixed the bug for leave slips