fix a delete temp data bug