Fixed the error from the linked list assignment