Fix the missing code to generation argv string in UI threading case.