fix crash on startup errors
...