Fix relation-departed hook