fix var definition error