A flexbox repaint bug