fixed error on ByteBuffer