fix broken tag removal