fix $post_id problem