segfault is fixed by #61