Fixing assertion so it passes on windows