fixed the crash when copying files from the jar to the computer