Update StatSystem.cpp

mods for resilience