Fix for zero length files