Bug fix for optimization of problem stat