--- a/daemon/liblegacy/opd_proc.c
+++ b/daemon/liblegacy/opd_proc.c
@@ -137,6 +137,7 @@
 	if (!sfile || !sfile->sample_file.base_memory) {
 		if (opd_open_24_sample_file(image, counter, cpu_number)) {
 			/* opd_open_24_sample_file output an error message */
+			opd_24_stats[OPD_LOST_SAMPLEFILE]++;
 			return;
 		}
 		sfile = image->sfiles[cpu_number][counter];