fixed arfwriteatt