Fixed closing tags bug