fix bug for convert byte to int