fix publish.rb