fixed problem with dimension of table and subset of it