Fixing usage of getRelatedAssocs-call