Fix a bug with max-height of header