Fixed a minor bug in the nav menu order logic.