Bug fixes to the nanotec protocol.