fixed a bug in the main nav