fixed issue where problem matrices differed across solves