fix win7 crash