Fix bug 1731: backwards compatibility of relations