Bug on empty/missing file corrected