Fixed: head and tail didn't have their prev pointing to each other