fixed ByteBuffer method signature