remove duplicate publish command