fixed a new bug in mpfit