check that the ID generated is valid, if not fallback to default generator