fixed leaked variable.