Fix statsForFile is undefined error
Merge pull request #366 from RickyChien/fix-statsForFile

Fix statsForFile is undefined error