Fix bug in hideHeaders