Fixing issue in dual publisher