fix: possible seg fault in factorization

viewLog.html?buildId=9529&tab=buildResultsDiv&buildTypeId=bt7