Fix a minor bug with MI register writes.