Fix Autofac registration.