Revert "Fix bug with routes."

This reverts commit 7c4330fcca8677cccf9ac54970435a8c0c7a9240.