fix publishing function in orgmode