Fix delete relationship error