fix automatic attributes