fix frontend statistics