Fixed small bug in routes