fixed a threadedUpdate bug