byte to long conversion bug fixed