statistics bugfix