Fixed dimension bug