Error in make.grid