fix threading-related executive bug