fix safari judge bug