fixes error in routes