An employee was replacing a broken bolt on a pneumatic cylinder of a 3,000 ton aluminum extrusion machine and amputated the right thumb at the first knuckle joint. The machine was guarded by distance with a guardrail system. The machine was running at the time.