1. fix stat info bug
2. fix buffer overflow bug