removed a warning in MyNavBar