CAcorrect: fix the 'fit data' allocation logic