fix republish function call: fixes #12
Merge pull request #13 from gonzohunter/issue#12

fix republish function call: fixes #12