Fixes errors in SortedList caused by invalid Doubly-Linked-List logic.