Fixed poor performance when calculating