Fix the problem that some groups are not highlighted correctly