Fixing the name of factoryClass which has changed to factory-class