Fix application startup segfault.