fix setCalcParent call