Fix run in read-only buffers.