Fixed group peer chosing algorithm.

Groups should be much more stable.