bug fix for nonequidistant control grids