Fixing variation calculator.