Fix list deletion bug.