remove groups with no data bug fixes