fixed parent-missmatch bug.