Minor fix on model export helper.