correct routing errors