Bugfix: prevent segfault when duplicate match fields are added.