added check for empty model after throwing away last calibration point