Fixed multithreading errors when downloading updates.