Below you can see the socket of the head unit and it may work after swapping the wires which are connected to pins 15 and 8.
It may be a good idea to use a multimeter to check if swapping is required. Or you could remove the head unit from car and use an power supply at home to check if memory problem still there after correct wiring. But for this you need a 12V power source.

It may be a good idea to use a multimeter to check if swapping is required. Or you could remove the head unit from car and use an power supply at home to check if memory problem still there after correct wiring. But for this you need a 12V power source.
