fix safari flex