Fixed stack overflow when evaluating variables.