Remove duplicating block names from the endblock tags