Fix type error that could introduce NaNs when curve fitting.
Update change log.