fix a hover/click bug in safari