fixed function name in safari