Fixed bug where page reloads would negate class renames.