Fixed an error in the routes