fix to nesting of attribues