Fix bug 1732: backwards compatibility of relations