fix publish_gem bug