fix loop FindHeadChild