bug fix in read_post_data