write new attributes to file
fix missing attribute update