Fix update and publish.