Fix publish and edit.