fixed a bug related to unsigned byte.
fixed the unsigned byte bugs.