Wrong classes when downloading the dataset

When trying to download the dataset using roboflow API with yolov8 txt annotations format the classes are changed.
How should I download the dataset with the same classes I used while annotating the images?
Here is the image on roboflow with class 3

The same image on colab after downloading the dataset using roboflow api has class 222 in the txt file of the image