Make better normalize-attributes