correct error in factory.structure