fixed RENDER_HEADER exception bug