Improve initialization process of relations.