Fixed segfault when computing a model w/>1 thread.