Fixed segfault

Linked list wasn't being initialised