fixed bug with auto-create route