Correct context on header rendering