a minor fix for group in range