diff --git a/templates/thread.html b/templates/thread.html
index c58eafa4..18ddadd9 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -8,10 +8,11 @@
, board_name = "{{ board.uri }}"
, thread_id = "{{ thread.id }}";
- {{ include('captcha_script.html', { form_action_type: 'post_reply' }) }}
{% include 'header.html' %}
+ {{ include('captcha_script.html', { form_action_type: 'post_reply' }) }}
+
{% set meta_subject %}{% if config.thread_subject_in_title and thread.subject %}{{ thread.subject|e }}{% else %}{{ thread.body_nomarkup|remove_modifiers|newline_to_full_stop|remove_markup|e[:256] }}{% endif %}{% endset %}