fixed windows crash

Hopefully for good