Fix to not replace this.factories[model] reference when using custom values.