Fix bug in snapshot

This bug was caused by an improper assignment operator and
prevented snapshotting from working in ruby >= 1.9