cq: fixed valid.  Fixed #884