minor bug fix to reducedim