fixed: sometimes crash on reloading dlls