fixed error in routes