Fix the disabled check when using the global flag