fix grid outputting flex styles for legacy browsers