Fix bug with entities inside header text.