byte to int conversion fix