fixed confirm issue for some devices