bug fix on check file size