stats: fix strict mode bug