fixed major bug. Transformer object weren't initialised with factory