Fixed some ie and safari issues with flexbox