fix attribute and value translations