fix NPE when adding subscriptions (#6)