Fixes bug resulting in wrongful positioning of nav bar