fix bug in post-request