fixed a bug with nav