fix bugs for nav bar counts