fix modelFactory bug