(CDB) Fix bug in statistic view