Fix bug about getting file size