fix for non equidistant control grids
small fix related to NARX models