fix: fix the factory example