Fixed bug with snapshot positions when writing log diffs.