Byte comparation bug fix