End-tag closes scope in the proper way