fixed errors in routes