fix infruritating segfault