Fix id not found bug.