fix some strange bug with Byte error