tag input repair