The trip meter is resetting everytime my car is restarted. Is this a setting that I can undo or is there a problem in the electrical system?

Cheers,

1989 535i
5spd
240,000km