A day after Derek Dietrich was hit in the back of the head by a line drive while sitting in the team's dugout, the Miami Marlins had a little fun at the expense of the utility player by getting him a new lid to avoid future accidents.

No more accidents. #Marlins teammates hook Dietrich up with hard hat. pic.twitter.com/tjB6dmZiSF — Joe Frisaro (@JoeFrisaro) May 30, 2016

Derek Dietrich presented with a Marlins hard hat by his teammates during warmups. @HeraldSports pic.twitter.com/oZjiRaG3sg — Andre Fernandez (@AndreMHsports) May 30, 2016

Although Sunday's incident looked scary at first, Dietrich was attended to by emergency medical staff and X-rays on his noggin came back negative.

The 26-year-old was also cleared of any concussion symptoms and is available to play, but wasn't in the team's starting lineup against the Pittsburgh Pirates on Monday.