Bugfix in relationship dictionary