Fix loading animation bug on navigation elements