Sutdent is enrolled in the same class twice after "Sync Course Enrollment"

Hello, i have a small issue, when syncing homeroom with classes, it seems like each student is being added 2 times to the class where i end up with
20 Active students
10 Total students
where each student is a duplicate

.
Video attached,

any way to avoid this? i try to avoid doing the job manually as we have 25 classes.
Please see Attached video on this google drive link:
Demonstration Here

I managed to bypass this issue by directly importing my class enrolment from Data import feature
but I hope we figure out what is the issue for future use

Any update on this, it is very disturbing
whenever i sync a class to a formgroup each student will be present 2 times in the class