fix bug of saving publishType