Fixed minor bug:premature list deletion