fix AutoRouter