fixed parent reset bug