Fix a routing bug for certain _lookup controller configurations.