Fixed 1D bug in DIF.