Fixed bug of assign a variable, cause variable not exists.