Corrected byte to int.

Fixed a bug.