Fix bug of failed publishing new shared subject.
Merge branch 'henryleu'