Fixed issue that deactivated menu sometimes