fixed leave check