Fixed bug which would result in crash at first install