Fix endblock