Fixed the navigation bug.