i had the same problem with my hatch...
i took it 100s of time to get a solution... every time we would reset the ecu it would be ok...
finally one day the car went dead. it was corrosion in the wires terminal .... it would not send the current properly