fixed publish only problem