fixed crash that occurred when the previously opened file is no longer
there