Error in routes fixed