Dimension bug fix