fix a bug in grouping the distal oxygen