Fix bug with no header html output