bugfixes on incoming and outgoing relationships