prevents mystery segfault