Changed the allocation of the byte buffer