fixed :on_delete email rule