       url = "/#{url}" if (url.slice 0, 1) isnt '/'
 
       # fallback to root url in case user enter the '/'
-      url = app.root if url == "/"
+      url = Routes.root if url == "/"
 
       for route in @routes
         if route.matcher.test url


    setTimeout =>
      url = window.location.pathname
      url = app.root if url == "/"
      @run url
    , 1


  constructor:( @the, @on_change )->
    Factory = @the.factory

    for route, opts of Routes.routes
      @map route, opts.to, opts.at, opts.el, @

    History.Adapter.bind window, 'statechange', =>
