Fix Publish and archive buttons