getChild method fix