Fixed getChildByName function.