Fix flex styles for safari.