Fix global variable assignment

Signed-off-by: Hongjiu Zhang <zhanghj@umich.edu>