(a) BACH2 is a member of both cluster_2 and cluster_18.
(b) Atoh1 appears twice as a member of cluster_6
This can easily be confirmed looking at that file in the browser and searching for the motif.
Upon consideration, this apparent violation of well-formed cluster must be due to the use non-unique TF names in that file. TFs sometime have multiple matrices that may cluster together (as in (b)) or apart (as in (a)).
Can you provide a version of the cluster membership table which identifies them by their long-form id JASPAR_2022_vertebrates_CORE_m1_MA0004_1 (or even better, their motif name (incorporating version) e.g. "MA0004.1"
Or even better, if you provide a sqlite version of all this?