fixed issue with publish un-publish.