Fix issue in char displacement calculation.