Use correct variable name in get_relations