Fix startup segmentation fault problem.