fix for publish/unpublish answer function