Fixed a bug in snapshot searching