fixed parent bug