fix load button caused crash when no file selected