Removing redundant autoSetDimension