fix error in routes