Fixed a bug when deleting a subscription.