Fix to convert-to-relational function.