fixed error in leave request button availability selector