Fixed windows crash.