fixed the avg issue when clicking the nav links