delete trailing spaces
fix wrong nested Attribute names