Fixed compile errors with exponential Fit algorithm