Fix problem with navigation bar on small screens