Fix problem with loop for searching dependent questions