fixed variable leak.