Fixed linked list CAS logic.