Fixes another bug in Windows build