Memory leakage bug fixed.