fixing reference to wsid when delete (single) is called.