Fix IllegalArgumentException on disable.