switching salvage title to clear title

another problem with buying cars today, is when say, i own a 2004 bmw that is paid for, i have title in my possesion, and i get wrecked. insurance pays for it, and gives me the option to buy back for pennies on the dollar. i take that car a rig it together to fix it. and all this time, i have still maintained the possesion of the title. so it is still clear on the tile i have. so i go and sell the car, and hand over the clean title, but when the buyer takes it to dmv, they get the shock of a lifetime, being told that there car has a salvege title, and must first be inspected. i t happen to me, and i am sure it happens everyday to un-suspecting buyers