fix bug: filesize undefined