Bug fixes.
Note: 0xff is ONE byte. 0xffff is two bytes.