fix stupid memory problem.