corrected bug that forced attribs to be incorrectly formed