update stats, and fix the bug in Infull method