fix bug in group detection (cases where the entire date was on big transfer)