fixed child elements bug