auto-publish bug fixing