Bugfix for stats