Tag close fix