fix partial and relation