Fix bug in createStaticRoute.