Fix bug with ios6 and flexbox