Bugfix for the stat example.