fix bug for the windows