fixed multi dim bug