[parser] don't overwrite attribute values on second occurence

as described in #42