Fix the incorrect stats initialization.