make sure a slug is generated on publish and fix some notices