Fix segue thread to use main thread