Memory leakage fixed.