fix bug with relation resolve=exist
Merge branch 'relation' of https://github.com/AdeleResearchGroup/ApAM into relation