Fixed main thread continue issue