Fixed windows crash