The cigarette lighter is a keyed wire. Meaning that it only comes on when the key is in the acc or on position. You need to wire the yellow wire from the head unit to something that is a CONSTANT power if you want the memory to save and the red wire in the head unit needs to be to a keyed wire.