Fixed a bug of read zero length bytes