Fix lost function in abstract_factory