fixing bad logic checking versions and null snapshots