fixes wrong classname reset