Corrected fault in difs logic

Corrected a really bad fault in the difs logic.