Fixed bug with routes