Fixed snapshot crash.