Fixed a bug in linked list deletion exercise.