Fixed crash when aborting which file to open