Fixed issue with false edges being added.