Fixed stats_merge crash.