Fix a memory error in Stat. Thanks ASAN