set dimension value to 2, fixes issue #2