hackfixing segfault