Fix display flex property for safari.