resubscribe was called twice. This fixes that.