Fix: crash in windows