Bugfix in dimensions template