Fix for dims.  Closes #1