Bugfix in activity creation handler for stats