Fix safari display issue