fixed memory leak
i suck