fix critical bug, where last_snap got set to .