I have got exactly the same problem as Matthew Letissier described below. The garage thought it was the magnet sensors and cleaned/replaced them. They have also replaced the XYZ switch. I now get all gears except 5 to show. It is 5th gear that seems to throw the car out of its calibration...