fixed a warning on windows