Fix removing relations