Fix spec definition to properly check for variant id.