Correct / Remove invalid IDs