Fix var_name is not set for component context