possibly fix segfault