fix segfault on failure to compile