Fix permissions on publish