segfaults on restart.