Fixed misplaced code for navigation bar.