fixed order of dimensions bug