fix snapshots bug