ensure that a manually set lastModified date is preserved