bug fixes for publish, discard and object choice