fix layout issue of safari