fixed dimension bug