Pay attention to bad data - not enough or degenerate points. The program should report such problems rather than crash trying to fit.