fix one of the bugs in new recalculation