GH-68 relationship references wrong table

Fix for GH-68