fixed the automatic nick grouping script