fix overlay effect in safari