partially fix navbar resizing issue