Fix bug for publishing.