fixing tooltip rendering issues on safari