fix safari render bug