fixed error with routes