prefix match fix for automatically generated routes.