Fixed some bugs when groups were even