fix publishing issue.

close issue #266