bug fix for win