Fixed some of the leaks in REGRESSION