fix bug of buffer is read only