fix crash on startup on Windows...