fixed bad factory for checkout