fix LogDialog deadlock