Fix wrong child indices.