Hopefully fixed crash on windows