Fixed issue preventing last group from being collapsed