bug fix after final delete