More reliable update of publish state.