Compensation for bending of workpiece, flexible workpiece