Fixing problems with update Thread.