Fixed variable name declaration in cuda fitter