Fixed issue with retrieving dimensions.