fix bufferput