Fixed the crash, now the program runs.