fix bugs in post_data method