fix change parent bug