Fix 'shift' adjustment when using 'center' type.