fixed bugs on navigation bar