handle missing ids