Fixed the error in LF calculations if the number of threads is changed between calls to ::Compute