fix bug with off method when there are no subscriptions