fixed an issue to be able to wait for all events handled after publish
minor version change.