fix wire delete bug