Fixed runtime errors related to Ninject configuration.