fix bugs on windous