Fix id removal process.