diff --git a/waterdata/templates/monitoring_location.html b/waterdata/templates/monitoring_location.html
index 511bd55ab1b30c6895feae4e5d026fd61e5a72bb..a42dc620d431e4d5d6a0af5ac3a53c2a2e6605f2 100644
--- a/waterdata/templates/monitoring_location.html
+++ b/waterdata/templates/monitoring_location.html
@@ -2,10 +2,11 @@
 
 {% import 'macros/components.html' as components %}
 
+{% if stations|length == 1 %}{% set page_title = stations[0].station_nm %}{% endif %}
+
 {% block extra_head_tags %}
     {% if status_code == 200 %}
         {% if stations|length == 1 %}
-            {% set page_title = stations[0].station_nm %}
             <meta name="description" content="{{ components.Description(stations[0].site_no, location_with_values, parm_grp_summary) }}">
             <!-- tags for Facebook Open Graph -->
             <meta property="og:url" content="{{ url_for('monitoring_location', site_no=stations[0].site_no, _external=True) }}" />