Fix an issue with statistics compiling