Fixed all current memory issues.