Fix problem with Thread (Invoked)