https://github.com/JuliaNLSolvers/Optim.jl/pull/893
JuliaNLSolvers/Optim.jl#893