fixed VAR/VAL bug