Firefighters in Bakersfield, California used vegetable oil to free a pit bull who got his head stuck in the hub of a car wheel.

The stuck dog’s owner brought him to a Kern County fire station on Friday, according to the Associated Press. Fire Department spokesman Brandon Hill said firefighters used the oil to “ease the dog’s head out of the hole.”

The pit bull, named Junior, is fine and has returned to his owner and seven siblings.