Fixed an issue with boundary condition in the truncation code.
Now will ignore added a group when there are 1000 with the same prefix!