A California man who allegedly fired shots at a party last summer turned himself in to police after he searched for his name on Google and discovered that he was one of the state's most wanted fugitives.

At the time, the top search result for his name was the law enforcement site Northern California Most Wanted.

Christopher Viatafa, 27, surrendered to police last week.
Accused of doing wrong, authorities said Viatafa then did what was right: He turned himself in to police.
Viatafa was wanted by San Leandro police on charges of discharging a firearm in an inhabited dwelling. He is accused of firing a gun into the ground following a confrontation at a party at the San Leandro Senior Center back in August. No one was hurt in the incident, according to SFGate.

Although the incident allegedly occurred in August, his mugshot didn't go live until December, when it appeared on Northern California Most Wanted, a website launched by the U.S. Marshals Service, FBI and Northern California Regional Intelligence Center.

"Although it wasn't good judgment that landed him on the website, he did used good judgment to turn himself in after seeing his photo," San Leandro, Calif., Police said in a statement obtained by ABC News.

Other fugitives in positions similar to Viatafa's haven't exercised the best judgment.

Did the right thing. The stress of his actions probably were immense so just turning himself in and dealing with the consequences may have been easier to cope with. He'd know he'd be being looked for and as said above, maybe he was trying to diffuse a situation.