fix another segfault