fix miss bytes on head reading