Fixed thread safety issue preventing the program from working