A note on global gauge anomalies