fix navigation bar bug