Fixed segfault bug that killed all jobs