Removing references from parents

Removing references from parents when changing relation