Fixed bug in deprecated updateStats

Last commit changed behaviour of updateStats, this fixes it.