added a close statement in the loadIncorrectProblems Function.