wasn't parsing model.propertiesForEdit correctly