The route error mentioned by the issue #24

I had the same problem described in the issue #24, but I solved that in a slightly different way.