fixed toggle error