fixed another segfault