Fix extract bug and filter correct category.