Fix bug for Windows