fixed minor bug in DimSwapper