Fix arraying of relations.