fixed bug in dependency generation in questionnaire