Fixes navigation bug on small devices