Fix using wrong business key in legacy id transformation