newNode throws seg fault