fix bug in has_subscribers check