Bug in calculating if requirement is met

if no corresponding question is found, it goes bang