2004 mercedes CLK500

Mercedes » CLK-Class » 2003-2009
Question

My check engine light comes on and off- The car has to be shut off in order to go back into park- transmission goes into safe mode but once I shut it off-take the key out and restart - it drives normal. I already changed the 13 pin connector in transmission with new o-rings. The car soft 2 analyzer says the EMS lever positioning module is faulty. Where is this located and how to I go about buying one??? Is it under the shifter??