I'd say the dealer is the one who sold you the defective item. They're culpable for seeing that you receive a properly working vehicle.