fix bug in recalculate diffs