removing error in nav