fixed the debug information to show the group-by clause correctly.