fix issue with missing files not returning nil