Fix bug where data sometimes got erroneously copied between cells