Fixed regression in createModels when I switched from subset to with in prior update.
fix file mode