diff --git a/app/views/plans/export.docx.erb b/app/views/plans/export.docx.erb
index 0ea56f4..7f9c2c2 100644
--- a/app/views/plans/export.docx.erb
+++ b/app/views/plans/export.docx.erb
@@ -16,30 +16,32 @@
<% @exported_plan.sections.each do |section| %>
-
<%= section.title %>
- <% questions = @exported_plan.questions_for_section(section.id) %>
- <% questions.each do |question| %>
-
- <%= raw question.text %>
-
-
- <% answer = @plan.answer(question.id, false) %>
- <% if answer.nil? then %>
- <%= _('Question not answered') %>
- <% else %>
- <% q_format = question.question_format %>
- <% if q_format.option_based? %>
-
- <% answer.question_options.each do |option| %>
- - <%= raw option.text %>
- <% end %>
-
- <% if question.option_comment_display %>
- <%= raw answer.text %>
- <% end %>
- <%else%>
- <%= raw answer.text %>
- <%end%>
- <% end %>
- <% end %>
-<% end %>
+ <% questions = @exported_plan.questions_for_section(section.id)
+ if questions.present?
+ %>
+ <%= section.title %>
+ <% questions.each do |question| %>
+
+ <%= raw question.text %>
+
+ <% answer = @plan.answer(question.id, false) %>
+ <% if answer.nil? %>
+ <%= _('Question not answered') %>
+ <% else %>
+ <% q_format = question.question_format %>
+ <% if q_format.option_based? %>
+
+ <% answer.question_options.each do |option| %>
+ - <%= raw option.text %>
+ <% end %>
+
+ <% if question.option_comment_display %>
+ <%= raw answer.text %>
+ <% end %>
+ <% else %>
+ <%= raw answer.text %>
+ <% end %>
+ <% end%>
+ <% end %>
+ <% end %>
+<% end %>