bugfix in detecting mayor for group