Possible fix for memory leakage.