fix error on disabling