Correction for getting the generated questionId