Fixed all the memory bugs (probably)