Fix logic error in set_artist_ids