Fix flex CSS for Safari