Compensation of workpiece dilatation