Fix script disabling