fixed problem when saving a bed file of clustered regions. The first member of a group was wrongly placed in the previous group.