Fix modals for flexbox