fixed a warning in Windows