Fixed template problem in navigation_spec generator