Fix multiple background threads