fix for Element.build