Fix bug in for_brownian_motion in GapCloseSolver