pattern publish results in a SIGSEGV fixes issue 101
Merge pull request #102 from bpytlik/fix-pattern-publish

pattern publish results in a SIGSEGV fixes issue 101