Police said a 51-year-old woman from Maine had to undergo emergency surgery after losing her thumb in a freak accident while pumping gas into her vehicle.

BREWER, Maine (AP) _ Brewer Deputy Chief Jason Moffitt said a woman from Bangor was filling up at a Brewer convenience store Monday morning when she jumped into the driver's side when the car began rolling forward.

Moffitt told WZON-AM that the driver's side door then hit a bumper on the gas pump island, slamming it shut on her thumb and cutting it off.

He said the woman and her thumb were rushed to the hospital, where she underwent surgery to re-attach it.

Officials said about 10 gallons of gas were spilled, but that the Brewer fire crews quickly cleaned it up.