fixed a bug with the nav