Fixes empty path in route.