Remove unneeded InvokeOnMainThreads