bugfixes for empty trace files and mating finding performance