Fix autoWiring assertion errors