Fixed issue with duplicate class warnings showing up if a page is
refreshed multiple times