fix a bug for posting