Workaround for wrong classes on navigation elements after resizing the window.