Minor threading fix