fixed the issue with optimization having too many snapshots.