Fix 500 error on new installations