Fixed bug in SimpleProblem.