fixed the logic for defining if a snapshot is up to date or not