Fixed a typo in factory.