Fix segfault during install