fix postpublish script bug