fix flexbox problem in Safari