featured image fix?

changed from $post_id to $post->ID