fix for zero size files in multithreaded and plain version