Fix toggleEnable function