fix bug when delete temp model