fix bug not closing a tag