improve error for primary nav