Correct a bug where any existent curve ID would not be recognized and a CMD_ERR_INVALID_ID would be returned