fixed auto routing bug