Fixed a bad bug in dimension.py
.