fixing reflow bug in safari