Fix the bugginess of the top navbar on smaller screens