Fixed leaked variable