Fixed crash when starting on windows