Fix statsForFile is undefined error.
Merge pull request #322 from RickyChien/fix_statsForFileError

Fix statsForFile is undefined error.