Fixed error with updating stats and fixed toggle error