fixed code error in nav