fixed navigation bar bug