Quick bug fix in BrownianGapCloseCostFunction