Safari flex fix