Fix write-and-snapshot