bug fix for windows OS