Fixed bug in routes