fix a bug in post retrievals