Fixed a bug in dimensions