Fixing the Factory.model call