Fix crash when reaching capped stat