pattern publish results in a SIGSEGV fixes issue 101

In my tests, before the change, ardb exits with a SIGSEGV. After this change, my tests pass.