Fixed bug in route loading