fix another segfault error