fix a path issue

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