Fix bug that doesn't let work with snapshots.