Fix attachement renaming (meta-data wasn't updated)