Fixed the crash when the program is deleted from the sd card