error check for nav