Minor fix to agentsolver.cpp
Merge