Find $this->question->nid, replace with $this->question->qid.