make sure we don't crash on bad id's