fix win7 bug