finish attributes parsing (and fix attribute data)