fix issue 10055 - Incorrect attribute merging in destructor building

http://d.puremagic.com/issues/show_bug.cgi?id=10055