fix: subroutes inside index.js would get wrong path