Handle illegal ids