bugfix in snapshot-taking