fixed a error with routes