fixed bug where page would scroll too much when clicking nav item from the top of the page