Fixes nav bar resizing bug