fixed issue #1 (using Buffer over BufferUtil)