{% if navigation %}
  <ul>
    {% for nav in navigation %}
      <li{% if nav.selected %} class="selected"{% endif %}>
        <a href="{{ nav.link }}" title="{{ nav.navigation_title }}"{% if nav.nofollow %} rel="nofollow"{% endif %}>{{ nav.navigation_title }}</a>
        {% if nav.selected %}{{ nav.children }}{% endif %}
      </li>
    {% endfor %}
  </ul>
{% endif %}

{% if navigation %}
  <ul>
    {% for nav in navigation %}
      <li{% if nav.selected %} class="selected"{% endif %}>
        <a href="{{ nav.link }}" title="{{ nav.navigation_title }}"{% if nav.nofollow %} rel="nofollow"{% endif %}>{{ nav.navigation_title }}</a>
        {% if nav.selected %}{{ nav.children|raw }}{% endif %}
      </li>
    {% endfor %}
  </ul>
{% endif %}

Fix navigation with deeper levels.
Fix navigation with deeper levels.

This fixes issue #1543
