Fixed error in panning correction.