Fixed a bug with the handling of the dimension labels.