fix disabling incorrectly