fix to inplace function change in opDFT and opDFT2