fixed new flushDf function