fixed an error in InflectionGrid.clone()