bug fix for publishing before publisher ready.
Merge pull request #9 from cburbridge/master

bug fix