fix mod loading/multithreading issue