Fix Safari display problem