Fixed a bug when any annotation group has empty entries.