fix auto-publish