Bug fix for prevented deleting just after inserted.