Employee was changing out a gasket in pipeline. Employee had loader to pick up the pipe. Employee put the head of a bolt in between the flanges to wedge the pipe open. Employee was still holding bolt in hand when pipe was lowered; pipe twisted causing bolt to fly out from between flanges and cut employee's right hand on inside just under the thumb.