fixed.
- $offset is no needed.
- $fileLength is needed