added temporary fix to failing doctest in nelder-mead