fixed error with 0 sized files