corrected the flags that are passed in the solveSchubertProblem function