fixed stats not displaying error after coming from history