Fix IO Error when opening missing file