fix for InIdleThread flag