fixed a problem where views weren’t reset