fixed a bug with wiretool