fixed typo in factory template