Fix problem where putting the PIM in message mode resets the other registers.
1.0.2