fix group error and int comparer bug