Fixes bug with positioning of nav bar