fixed dimension error on previous version