Fix bug in visualization of tooltip in Firefox