Adding a workaround for Mozilla's flex box implementation.