fix a spec and selection condition injection