Fixed bug when using root path in url mapping adapter