stats: fix hoisting for firefox