Fix bug of failed publishing new shared subject.