fixes initial routes. Only really works in production.