fixes routing errors