I'm an idiot, fixed stupid reference issues (list->head instead of head). Don't know why no compiler warning...