fix and issue with sending leave request when there is no master.