Fix error for using multiple groups.