How to install blower motor relays??

I should add that as soon as I move the switch to medium or low and then turn the key off or put the controls on off it stops working. I thought about trying to figure out where it's backfeeding and put in a diode.