bugfix for relational_util.py