Fix work deduping and source adding