Fixes flex support for safari