fixes another bug in intersect positions
fixes bug in groupkey index