Fix relationship creating.