Fixed handling very small files
Fixed handling very small files