fix for node being created on the wrong side when source and target
packages are overlapping