fixed bug in snapshot existence test.