self.relations_plain was a reference to self.relations which is not what it should be.