fix bad name extension issue for iOS and WM