Fixt memory leakage.