fixed issue at publishing post