Fix crashing after installation