fix ending tag