replace deprecated fetch_by_source_stable_id method with fetch_by_stable_id