fix a path bug

* when visit http://host/r/1, it throws KeyError exception