fixing a bug in checking existing subscriptions