Fixed a crash on clean installs