A note on compact groups