Fix toggling error.