fix win7 and later permission