Corrected byte to int

bugfix